<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/template/common/header.jsp"%>
<div class="pageContent">
	<form method="post" action="${base }/spider_check!doAdd.action"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="58">
			<div class="unit">
				<dl>
					<dt>源URL：</dt>
					<dd>
						<input type="text" name="model.sourceUrl" class="required url" />
					</dd>
				</dl>
			</div>
			<div class="unit">
				<dl>
					<dt>目标XPATH：</dt>
					<dd>
						<input type="text" name="model.targetUrlXpath" required="required">
					</dd>
				</dl>
			</div>
			<div class="unit">
				<dl>
					<dt>下一页XPATH：</dt>
					<dd>
						<input type="text" name="model.nextUrlXpath" required="required">
					</dd>
				</dl>
			</div>
			<div class="divider"></div>
			<table class="list nowrap itemDetail" addButton="添加属性" width="95%">
				<thead>
					<tr>
						<th type="text" name="model.fields[#index#].name" size="30"
							fieldClass="required" fieldAttrs="{maxlength:100}">名称</th>
						<th type="text" name="model.fields[#index#].xpath" size="30"
							fieldClass="required" fieldAttrs="{maxlength:100}">xpath</th>
						<th type="text" name="model.fields[#index#].attr" size="30"
							fieldAttrs="{maxlength:100}">属性</th>
						<th type="del" width="60">操作</th>
					</tr>
				</thead>
				<tbody></tbody>
			</table>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">提交</button>
						</div>
					</div></li>
				<li><div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>

</div>